/**
 * Program  : PhotoImageView.java
 * Author   : long
 * Create   : 2016年1月4日 上午10:14:30
 *
 * Copyright 2016 by Embedded Internet Solutions Inc.,
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Embedded Internet Solutions Inc.("Confidential Information").  
 * You shall not disclose such Confidential Information and shall 
 * use it only in accordance with the terms of the license agreement 
 * you entered into with Embedded Internet Solutions Inc.
 *
 */
	
package cn.broadin.app.hotel.view;

import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PaintFlagsDrawFilter;
import android.util.AttributeSet;
import android.widget.ImageView;

/**
 * 自定义图片介绍信息
 * 
 * @author   long
 * @version  1.0.0
 * @date 2016年1月4日上午10:14:30
 */
public class PhotoImageView extends ImageView{
	
	public PhotoImageView(Context context) {
		this(context, null);
	}
	
	public PhotoImageView(Context context, AttributeSet attrs) {
		this(context, attrs, 0);
	}

	public PhotoImageView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}
	
	/**
	 * @see android.widget.ImageView#onDraw(android.graphics.Canvas)
	 * @param canvas
	 * @exception
	 * @author   long
	 * @since 1.0.0
	 * @date 2016年1月4日 上午10:15:08
	*/
	@SuppressLint("DrawAllocation")
	@Override
	protected void onDraw(Canvas canvas) {
		// 添加抗锯齿特效
		canvas.setDrawFilter(new PaintFlagsDrawFilter(0, Paint.ANTI_ALIAS_FLAG|Paint.FILTER_BITMAP_FLAG));
		super.onDraw(canvas);
		
		
		
	}

}
